package com.kuang.controller;

import com.kuang.common.limit.annotation.AccessIpLimiter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController extends BaseController {

    @GetMapping("/product/list")
    @AccessIpLimiter(limit = 5,timeout = 1)
    public String index() {
        return "success";
    }

    @GetMapping("/product/save")
    @AccessIpLimiter(limit = 5,timeout = 1)
    public String save() {
        return "success";
    }


    @GetMapping("/product/select")
    @AccessIpLimiter(limit = 5,timeout = 1)
    public String select() {
        return "success";
    }

}
